3.1.63 \(\int \frac {a d+a e x+(b d+a f) x^2+b e x^3+(c d+b f) x^4+c e x^5+c f x^6}{a+b x^2+c x^4} \, dx\)

Optimal. Leaf size=20 \[ d x+\frac {e x^2}{2}+\frac {f x^3}{3} \]

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 20, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 63, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.016, Rules used = {1586} \begin {gather*} d x+\frac {e x^2}{2}+\frac {f x^3}{3} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a*d + a*e*x + (b*d + a*f)*x^2 + b*e*x^3 + (c*d + b*f)*x^4 + c*e*x^5 + c*f*x^6)/(a + b*x^2 + c*x^4),x]

[Out]

d*x + (e*x^2)/2 + (f*x^3)/3

Rule 1586

Int[(u_.)*(Px_)^(p_.)*(Qx_)^(q_.), x_Symbol] :> Int[u*PolynomialQuotient[Px, Qx, x]^p*Qx^(p + q), x] /; FreeQ[
q, x] && PolyQ[Px, x] && PolyQ[Qx, x] && EqQ[PolynomialRemainder[Px, Qx, x], 0] && IntegerQ[p] && LtQ[p*q, 0]

Rubi steps

\begin {align*} \int \frac {a d+a e x+(b d+a f) x^2+b e x^3+(c d+b f) x^4+c e x^5+c f x^6}{a+b x^2+c x^4} \, dx &=\int \left (d+e x+f x^2\right ) \, dx\\ &=d x+\frac {e x^2}{2}+\frac {f x^3}{3}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 20, normalized size = 1.00 \begin {gather*} d x+\frac {e x^2}{2}+\frac {f x^3}{3} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a*d + a*e*x + (b*d + a*f)*x^2 + b*e*x^3 + (c*d + b*f)*x^4 + c*e*x^5 + c*f*x^6)/(a + b*x^2 + c*x^4),
x]

[Out]

d*x + (e*x^2)/2 + (f*x^3)/3

________________________________________________________________________________________

IntegrateAlgebraic [A]  time = 2.16, size = 19, normalized size = 0.95 \begin {gather*} \frac {1}{6} x \left (6 d+3 e x+2 f x^2\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

IntegrateAlgebraic[(a*d + a*e*x + (b*d + a*f)*x^2 + b*e*x^3 + (c*d + b*f)*x^4 + c*e*x^5 + c*f*x^6)/(a + b*x^2
+ c*x^4),x]

[Out]

(x*(6*d + 3*e*x + 2*f*x^2))/6

________________________________________________________________________________________

fricas [A]  time = 0.88, size = 16, normalized size = 0.80 \begin {gather*} \frac {1}{3} \, f x^{3} + \frac {1}{2} \, e x^{2} + d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*d+a*e*x+(a*f+b*d)*x^2+b*e*x^3+(b*f+c*d)*x^4+c*e*x^5+c*f*x^6)/(c*x^4+b*x^2+a),x, algorithm="fricas
")

[Out]

1/3*f*x^3 + 1/2*e*x^2 + d*x

________________________________________________________________________________________

giac [A]  time = 1.77, size = 17, normalized size = 0.85 \begin {gather*} \frac {1}{3} \, f x^{3} + \frac {1}{2} \, x^{2} e + d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*d+a*e*x+(a*f+b*d)*x^2+b*e*x^3+(b*f+c*d)*x^4+c*e*x^5+c*f*x^6)/(c*x^4+b*x^2+a),x, algorithm="giac")

[Out]

1/3*f*x^3 + 1/2*x^2*e + d*x

________________________________________________________________________________________

maple [A]  time = 0.00, size = 17, normalized size = 0.85 \begin {gather*} \frac {1}{3} f \,x^{3}+\frac {1}{2} e \,x^{2}+d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a*d+a*e*x+(a*f+b*d)*x^2+b*e*x^3+(b*f+c*d)*x^4+c*e*x^5+c*f*x^6)/(c*x^4+b*x^2+a),x)

[Out]

d*x+1/2*e*x^2+1/3*f*x^3

________________________________________________________________________________________

maxima [A]  time = 0.62, size = 16, normalized size = 0.80 \begin {gather*} \frac {1}{3} \, f x^{3} + \frac {1}{2} \, e x^{2} + d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*d+a*e*x+(a*f+b*d)*x^2+b*e*x^3+(b*f+c*d)*x^4+c*e*x^5+c*f*x^6)/(c*x^4+b*x^2+a),x, algorithm="maxima
")

[Out]

1/3*f*x^3 + 1/2*e*x^2 + d*x

________________________________________________________________________________________

mupad [B]  time = 0.03, size = 16, normalized size = 0.80 \begin {gather*} \frac {f\,x^3}{3}+\frac {e\,x^2}{2}+d\,x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a*d + x^2*(b*d + a*f) + x^4*(c*d + b*f) + a*e*x + b*e*x^3 + c*e*x^5 + c*f*x^6)/(a + b*x^2 + c*x^4),x)

[Out]

d*x + (e*x^2)/2 + (f*x^3)/3

________________________________________________________________________________________

sympy [A]  time = 0.09, size = 15, normalized size = 0.75 \begin {gather*} d x + \frac {e x^{2}}{2} + \frac {f x^{3}}{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*d+a*e*x+(a*f+b*d)*x**2+b*e*x**3+(b*f+c*d)*x**4+c*e*x**5+c*f*x**6)/(c*x**4+b*x**2+a),x)

[Out]

d*x + e*x**2/2 + f*x**3/3

________________________________________________________________________________________